﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using JM.JCY.Common;
using NCS.IConnect.PolicyInjection.CallHandlers;
using JM.JCY.BusinessComponent;
using JM.JCY.BusinessEntity;
using JM.JCY.DataAccess;

namespace JM.JCY.BusinessFacade
{
   public class PhotoAlbumBF:JCYBusinessFacadeBase<PhotoAlbumBC>,IPhotoAlbum
    {
       public PhotoAlbumBF()
           : base(new PhotoAlbumBC())
       {

       }

       public void CreateAlbumwithUpload(PhotoAlbumDataSet ds)
       {
           this.BusinessComponent.CreateAlbumwithUpload(ds);
       }

       public PhotoAlbumDataSet getAlbumDbyAlbumId(int albumId)
       {
           return this.BusinessComponent.getAlbumDbyAlbumId(albumId);
       }

       public PhotoAlbumSearchDataSet.T_UserCommitteeDataTable GetAllCommitteeUsersById(int committeeId)
       {
           return this.BusinessComponent.GetAllCommitteeUsersById(committeeId);
       }

       public PhotoAlbumSearchDataSet.T_UserDepartmentDataTable GetAllDepartmentUsersById(int departmentId)
       {
           return this.BusinessComponent.GetAllDepartmentUsersById(departmentId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumContentDataTable GetAlbumContents(int albumId)
       {
           return this.BusinessComponent.GetAlbumContents(albumId);
       }

       public PhotoAlbumSearchDataSet.T_SearchLikeDataTable GetObjectLikCount(int objectId, string objType)
       {
           return this.BusinessComponent.GetObjectLikCount(objectId, objType);
       }

       public PhotoAlbumSearchDataSet.T_AlbumDataTable GetRecentlyUpdatedAlbums(string appType, int appId)
       {
           return this.BusinessComponent.GetRecentlyUpdatedAlbums(appType, appId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumDataTable GetMostPopularAlbums(string appType, int appId)
       {
           return this.BusinessComponent.GetMostPopularAlbums(appType, appId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumDataTable GetAllPublicAlbums(string appType, int appId)
       {
           return this.BusinessComponent.GetAllPublicAlbums(appType, appId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumDataTable GetWorkgroupAlbums(string appType, int appId)
       {
           return this.BusinessComponent.GetWorkgroupAlbums(appType, appId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumDataTable GetCommitteeAlbums(string appType, int appId)
       {
           return this.BusinessComponent.GetCommitteeAlbums(appType, appId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumDataTable GetMySelfAlbums(string appType, int appId, int staffId)
       {
           return this.BusinessComponent.GetMySelfAlbums(appType, appId, staffId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumContentDataTable GetMadieById(int madieId)
       {
           return this.BusinessComponent.GetMadieById(madieId);
       }

       public PhotoAlbumSearchDataSet.T_AlbumContentDataTable GetMadieByAlbumId(int albumId)
       {
           return this.BusinessComponent.GetMadieByAlbumId(albumId);
       }

       public PhotoAlbumSearchDataSet.T_SearchLikeDataTable GetLike(int objectId, string objectType)
       {
           return this.BusinessComponent.GetLike(objectId, objectType);
       }

       public void LikeOfAlbum(PhotoAlbumSearchDataSet ds)
       {
           this.BusinessComponent.LikeOfAlbum(ds);
       }

       public PhotoAlbumSearchDataSet.T_UserCommitteeDataTable GetUserCommitteeByUserId(int userId)
       {
           return this.BusinessComponent.GetUserCommitteeByUserId(userId);
       }

       public PhotoAlbumSearchDataSet.T_UserDepartmentDataTable GetUserDepartmentByUserId(int userId)
       {
           return this.BusinessComponent.GetUserDepartmentByUserId(userId);
       }
    }
}
